package com.ruoyi.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 抄表数据管理对象 zhwy_meterreadingdata
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
public class ZhwyMeterreadingdata extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，自增   */
    private Long id;

    /** 商铺id  外键 */
    @Excel(name = "商铺id  外键")
    private Long shopsId;

    /** 费用类型【数据字典  -- 电费  水费】 */
    @Excel(name = "费用类型【数据字典  -- 电费  水费】")
    private Long type;

    /** 上期读数 */
    @Excel(name = "上期读数")
    private Long lastData;

    /** 上期读表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上期读表时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastTime;

    /** 本期读数 */
    @Excel(name = "本期读数")
    private Long thisData;

    /** 本期读表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "本期读表时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date currentTime;

    /** 倍率【默认1】 */
    @Excel(name = "倍率【默认1】")
    private Long rate;

    /** 损耗【默认0】 */
    @Excel(name = "损耗【默认0】")
    private Long wastage;

    /** 最终数量【(本期读数-上期读数)*倍率+损耗】 */
    @Excel(name = "最终数量【(本期读数-上期读数)*倍率+损耗】")
    private Long lastNumber;

    private String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setShopsId(Long shopsId) 
    {
        this.shopsId = shopsId;
    }

    public Long getShopsId() 
    {
        return shopsId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setLastData(Long lastData) 
    {
        this.lastData = lastData;
    }

    public Long getLastData() 
    {
        return lastData;
    }
    public void setLastTime(Date lastTime) 
    {
        this.lastTime = lastTime;
    }

    public Date getLastTime() 
    {
        return lastTime;
    }
    public void setThisData(Long thisData) 
    {
        this.thisData = thisData;
    }

    public Long getThisData() 
    {
        return thisData;
    }
    public void setCurrentTime(Date currentTime) 
    {
        this.currentTime = currentTime;
    }

    public Date getCurrentTime() 
    {
        return currentTime;
    }
    public void setRate(Long rate) 
    {
        this.rate = rate;
    }

    public Long getRate() 
    {
        return rate;
    }
    public void setWastage(Long wastage) 
    {
        this.wastage = wastage;
    }

    public Long getWastage() 
    {
        return wastage;
    }
    public void setLastNumber(Long lastNumber) 
    {
        this.lastNumber = lastNumber;
    }

    public Long getLastNumber() 
    {
        return lastNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shopsId", getShopsId())
            .append("type", getType())
            .append("lastData", getLastData())
            .append("lastTime", getLastTime())
            .append("thisData", getThisData())
            .append("currentTime", getCurrentTime())
            .append("rate", getRate())
            .append("wastage", getWastage())
            .append("lastNumber", getLastNumber())
            .toString();
    }
}
